import { useEffect, useState } from "react";
import axios from "axios";

export default function () {
  const [config, SetConfig] = useState(null);

  useEffect(() => {
    getData();
  }, []);

  async function getData() {
    const res = await axios.get("https://ac.jrdaimao.com/api_config/jr_vip");

    SetConfig(res.data.data);
  }
  return (
    <div>
      <ul>
        <li>内容一</li>
        <li>内容一</li>
        <li>内容一</li>
        <li>内容一</li>
        <li>内容一</li>
        <li>内容一</li>
        <li>内容一</li>
      </ul>
    </div>
  );
}
